#ifndef CTAMAIN_H
#define CTAMAIN_H

#include <QObject>

#include "mainmenuimpl.h"
#include "serverexplorerimpl.h"
#include "optionsmenuimpl.h"
#include "ctaconfig.h"
#include "game/catchthealien.h"

class ctaMain : public QApplication
{
    Q_OBJECT
private:
    int argc;
    char** argv;
    MainMenuImpl* MainMenu;
    ServerExplorerImpl* ServerExplorer;
    OptionsMenuImpl* OptionsMenu;
// Config
    ctaConfig ctaConfig_;
// Game
    catchthealien* Game;

public:
    ctaMain(int argc, char** argv);
    void ctaInit();
    void ctaSetup();
    void ctaRun();
private slots:
    void readConfig();
    void saveConfig();
    void startSPGame();
    void startMPGame();
    void showServerExplorer();
    void startNGame();
};

#endif // CTAMAIN_H
